<template>
	<view class="help-list">
		<u-cell-group :border="false" class="help-group">
			<u-cell-item v-for="(item,index) in helpList" :key="index" :title="item.title"
				@click="handleHelpDetail(item)"></u-cell-item>
		</u-cell-group>
	</view>
</template>

<script>
	import {
		getPlatformAbout
	} from '@/api/article'
	export default {
		data() {
			return {
				helpList: []
			}
		},
		onLoad() {
			this.getHelpList()
		},
		methods: {
			getHelpList(){
				getPlatformAbout({type:"HELP_CENTER"}).then(res=>{
					if(res.data.code === 200){
						this.helpList = res.data.result[0].articleDtos
					}
				})
			},
			handleHelpDetail(item) {
				uni.navigateTo({
					url:'/pages/mine/help/helpDetail?id='+item.id
				})
			},
		}
	}
</script>
<style lang="less" scoped>
	.help-list {
		padding: 20rpx;

		.help-group {
			/deep/.u-cell-item-box {
				box-shadow: 0 6rpx 12rpx rgba(0, 0, 0, 0.05);
				border-radius: 16rpx;
			}
		}
	}
</style>
